package org.apache.oltu.oauth2.client.demo.model;

public enum OAuthChinaProviderType {

	WEIBO(
			"weibo", 
			"https://api.weibo.com/oauth2/authorize", 
			"https://api.weibo.com/oauth2/access_token",
			"https://api.weibo.com/2/users/show.json");
	
	private String providerName;
	
	private String authzEndpoint; 
	
	private String tokenEndpoint;
	
	private String userInfoUrl;
	
	/**
	 * 
	 * @description:获取用户信息url
	 * @author: fengzt
	 * @createDate: 2016年1月8日 下午3:32:54
	 * @return:String
	 */
	public String getUserInfoUrl() {
		return userInfoUrl;
	}


	/**
	 * Get the provider name
	 * 
	 * @return Returns the provider name
	 */
	public String getProviderName() {
		return providerName;
	}
	
	/**
	 * Get the authorization endpoint
	 * 
	 * @return Returns the authorization endpoint
	 */
	public String getAuthzEndpoint() {
		return authzEndpoint;
	}
	
	/**
	 * Get the access token endpoint
	 * 
	 * @return Returns the access token endpoint
	 */
	public String getTokenEndpoint() {
		return tokenEndpoint;
	}
	
	/**
	 * Full private constructor
	 * 
	 * @param providerName The provider name
	 * @param authzEndpoint The authorization endpoint
	 * @param tokenEndpoint The token endpoint
	 */
	private OAuthChinaProviderType(
			final String providerName, 
			final String authzEndpoint, 
			final String tokenEndpoint,
			final String userInfoUrl
			) {
		
		this.providerName = providerName;
		this.authzEndpoint = authzEndpoint;
		this.tokenEndpoint = tokenEndpoint;
		this.userInfoUrl = userInfoUrl;
	}
}
